package main

import "fmt"

func main() {
	//第四章：go语言流程控制
	//写个demo学习go语言的range键值对循环
	//range键值对循环
	s := "hello world"
	for i, v := range s {
		fmt.Println(i, v)
		fmt.Printf("%d %c\n", i, v)
	}
}
